<%=content_for :head do%> <title>muasam index</title>
<%end%>
<%= render "shared/search"%>
<%= render "shared/logon"%>
<%= render "shared/giohang"%>
<%= render "shared/footer"%>
<%= render "shared/menu"%>

<h1>trang gio hang</h1><br />
<%@muasam1.each do |sanpham|%>
<div style="display: none">
	
	<%= @product = Product.find(sanpham.productid)%>
</div>
<div class="displayListProduct">
		<%=image_tag(@product.image, :size => "150x200",:class => "img_pro")%>
		<h4><%=@product.title%></h4>
		<%= link_to "trả lại", muasam_trasanpham_path , :params => {:id => sanpham.id} %>
	</div>
<%end%>
<%= link_to "đặt hàng", muasam_muagiohang_path %>